@charset "UTF-8";

.icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}

/* 浮动标签 */
.floating-label-group {
  position: relative;
}
.floating-label {
  position: absolute;
  top: 1rem;
  left: 0;
  font-size: 1rem;
  color: #6b7280;
  pointer-events: none;
  transition: all 0.2s ease-out;
}
.form-input:focus + .floating-label,
.form-input:not(:placeholder-shown) + .floating-label {
  top: -0.5rem;
  left: 0.5rem;
  font-size: 0.875rem;
  color: #3b82f6;
  background: #fff;
  padding: 0 0.25rem;
}
.form-input:focus + .floating-label {
  color: var(--color-stone-900);
}
.form-input.success:not(:placeholder-shown) + .floating-label {
  color: #10b981;
}
.form-input.warning:not(:placeholder-shown) + .floating-label {
  color: #f59e0b;
}
.form-input.danger:not(:placeholder-shown) + .floating-label {
  color: #ef4444;
}

/* input 中的验证码 */
.input-captcha {
    top: 5px;
    right: 5px;
}